import http from './../config/http.js'
const LOGINURL = '/admin/login'
const CUSTOMERTYPE_ADD = '/customerType/add'

/**
 *
 * @param {password:String, phone: String} params
 * @returns  {success:Boolean, msg: String, code: Nubmer, Authorization:String}
 */
export const login = params => {
  return http({
    url: LOGINURL,
    method: 'post',
    params: params
  })
}

/**
 *
 * @param {customerTypeName:String} params
 * @returns
 */
export const customerTypeAdd = params => {
  return http({
    url: CUSTOMERTYPE_ADD,
    method: 'post',
    params: params
  })
}
